import Articles from './containers/Articles'
import ArticlesUl from './containers/ArticlesUl'

module.exports = [{
  path: 'articles',
  getComponent(location, cb) {
    require.ensure([], (require) => {
      cb(null, Articles)
    })
  },
  childRoutes: [{
    path: ':channelId',
    getComponent(location, cb) {
      require.ensure([],(require) => {
        cb(null, ArticlesUl)
      })
    }
  }]
}]
